package com.bee.bootstrap.role.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.bee.bootstrap.role.entity.Role;
import com.baomidou.mybatisplus.service.IService;
import com.bee.common.core.result.Result;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liekkas
 * @since 2018-05-25
 */
public interface IRoleService extends IService<Role> {

    Result findPageView(Page<Role> page, Role role);

    Result deleteRoleById(long id);

    Result updateRole(Role role);

    Result insertRole(Role role);

    List<Role> findRolesByCodes(Set<String> roleCodes);

    Result findRoleResources(long id);

    Result addRoleResources(long id, Role role);
}
